import {Component, EventEmitter, Input, OnInit, Output, ViewEncapsulation} from '@angular/core';

@Component({
  selector: 'notice-item',
  templateUrl: 'notice-item.component.html',
  styleUrls: ['notice-item.component.scss'],
  encapsulation: ViewEncapsulation.None
})
export class NoticeItemComponent {
  @Input() notice;
  @Input() type;
  @Output() onclick= new EventEmitter();
  constructor() {
  }
  goToTargetPage(notice) {
    this.onclick.emit(notice);
  }
}
